/*
 * @Description: 
 * @Author: zoe
 * @Date: 2024-09-25 17:15:53
 * @LastEditors: rendc
 * @LastEditTime: 2024-09-25 17:23:09
 */
public enum Gender{
    //第一行有效代码必须是枚举元素
    MALE, FEMALE;
    //数据成员
    private String desc;

    //成员方法
    public String getDesc()  {
        return desc;
    }
    public void setDesc(String desc)
    {
        this.desc = desc;
    }
    //构造器-注意必须用private修饰
    private Gender() {
       
    }
    private Gender(String desc)
    {
        this.desc = desc;
    }
}